/*
 * NCSConnectionFactory.h
 *
 *  Created on: Apr 17, 2017
 *      Author: zhangjf
 */

#ifndef SRC_NETWORKSUBSYSTEM_NCSTCPSERVERCONNECTIONFACTORY_H_
#define SRC_NETWORKSUBSYSTEM_NCSTCPSERVERCONNECTIONFACTORY_H_

#include <Poco/NotificationQueue.h>
#include <Poco/Net/TCPServerConnectionFactory.h>

using namespace Poco;
using namespace Poco::Net;

namespace network
{

class NCSTCPServerConnectionFactory: public TCPServerConnectionFactory
{
public:
	NCSTCPServerConnectionFactory(NotificationQueue& nq);
	virtual ~NCSTCPServerConnectionFactory();

	TCPServerConnection* createConnection(const StreamSocket& socket);

private:
	NotificationQueue& _nq;
};

} /* namespace network */

#endif /* SRC_NETWORKSUBSYSTEM_NCSTCPSERVERCONNECTIONFACTORY_H_ */
